<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>消息详情</title>
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <style>
    body{
      background: #fff;
    }
    .wrap{
      width: 100%;
      padding: 0 15px;
      box-sizing: border-box;
      overflow: hidden;
    }
    .wrap .wrap_inner{
      width: 100%;
      overflow: hidden;
      padding: 19px 0;
    }
    .wrap .wrap_inner .title{
      font-size: 22px;
      color: #333333;
      letter-spacing: 0;
      text-align: left;
    }
    .wrap .wrap_inner .time{
        margin-top: 12px;
        font-size: 13px;
        color: #999999;
    }
    .wrap .wrap_inner .content{
      font-size: 15px;
      color: #333333;
      letter-spacing: 0.7px;
      text-align: left;
      line-height: 30px;
      margin-top: 20px;
    }
    </style>
</head>

<body>
<div class="wrap" id="app">
     <div class="wrap_inner">
          <div class="title">{{problemDetails.title}}</div>
          <div class="content">
            {{problemDetails.content}}
          </div>
     </div>
</div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/vue.js"></script>
<script type="text/javascript" src="../../script/cling.js"></script>
<script type="text/javascript">
    apiready = function() {
       vm.init(api.pageParam.id)
    }
    var vm = new Vue({
      el:"#app",
      data:{
        problemDetails:{}
      },
      methods:{
        init:function(id){
          api.ajax({
              url: cl.apiServer + 'helpContent/getHelpDetail/'+id,
              method: 'post',
              headers: {
                  token:cl.userToken
              }
          }, function(ret, err) {
              console.log(JSON.stringify(ret));
              if (ret) {
                  if (ret.code == 0) {
                      vm.problemDetails = ret.data;
                  }
              }
          });
        }
      }
    })
</script>

</html>
